//
//  Post2ViewController.h
//  SpendFunk
//
//  Created by dongmh on 4/23/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FbGraph.h"
#import "macro.h"
#import "FbGraphFile.h"

@interface Post2ViewController : UIViewController <UITextViewDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIActionSheetDelegate> {

    FbGraph *fbGraph; //Graph API
    
	UIButton *m_pBtnBack;
	UIButton *m_pBtnDone;
	
	UISwitch *m_pSwtShrFacebook;
	UISwitch *m_pSwtShrFriend;
	UIButton *m_pBtnAddImage;
	UIImageView *m_pImgUser;
	
	UITextView *m_pTxtvCaptions;
	UIImagePickerController	*m_pPhotoPreferenceViewCtrl;
	
	/// API
	NSMutableData *m_pWebData;
	NSString *currentElementValue;
	NSString *currentElement;
    NSString *comment;
    UIImage *_image;
	
	// Please wait...
	UIView *_blockerView;
	
}
- (void)initView;
- (void)onAddImageClick;
- (void)onBackClick;
- (void)onDoneClick;
- (void)addSpendwithCateid:(NSString*)cateid userid:(NSString*)userid titleSpend:(NSString*)ttle amount:(NSString*)amount picture:(UIImage*)img location:(NSString*)location;
// share friends
- (NSMutableArray*)getInfoContactList;
//facebook
-(void)displayFacebook;
-(void)postPictureToFacebook;
    
@end
